/******************************************************************************
 * @Filename     : qspi.h
 *
 * @Version      : V1.0
 * @Subversion   : $
 * @Last modified: 04/30/2020 16:01:41
 * @Modified by  : Mxy
 *
 * @Brief        : QSPI driver header file
 *
 * Copyright (C) 2020 SKYRELAY Technology co.,Ltd All rights reserved.
 *****************************************************************************/
#ifndef __RC2412_QSPI_DEF_H__
#define __RC2412_QSPI_DEF_H__


#ifdef __cplusplus
extern "C"
{
#endif

	
	
#define QSPI_CLOCK_DIV                 (0x00ul)
	
#define QSPI_DUMMY_DATA                (0xFF)	
	
//user config para
#define QSPI_READ_CMD_QUAD             (0xEBul)
#define QSPI_READ_CMD_DUAL             (0xBBul)	
#define QSPI_DUMMY_DATA_LEN_QUAD       (0x05ul)		
#define QSPI_DUMMY_DATA_LEN_DUAL       (0x03ul)
#define	QSPI_BOOT_SEL_BOOT             (0x01ul)
#define	QSPI_BOOT_SEL_NORMAL           (0x00ul)	
#define	QSPI_CPOL                      (0x00ul)	
#define	QSPI_CPHA                      (0x00ul)
#define QSPI_CS_CS_LOW                 (0x00ul)	
#define QSPI_CS_CS_HIGH                (0x01ul)		

//Continous read mode. dual and quad
#define QSPI_CON_READ_MODE_FIRST_STEP  (0xA5)
#define QSPI_CON_READ_MODE_SECOND_STEP (0x5A)


#ifdef __cplusplus
}
#endif
#endif


